projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c9ae28
)
picture: Setting can-shrink requires a resize
author
Benjamin Otte
<otte@redhat.com>
Fri, 5 Nov 2021 19:51:00 +0000
(20:51 +0100)
committer
Benjamin Otte
<otte@redhat.com>
Fri, 5 Nov 2021 19:51:00 +0000
(20:51 +0100)
So queue one.
gtk/gtkpicture.c
patch
|
blob
|
history
diff --git
a/gtk/gtkpicture.c
b/gtk/gtkpicture.c
index 7694888c68483e4db91248c6221e6b47f02c47d2..6821ecacfbce29c9805e22af87976e139301a7d8 100644
(file)
--- a/
gtk/gtkpicture.c
+++ b/
gtk/gtkpicture.c
@@
-884,6
+884,9
@@
gtk_picture_set_can_shrink (GtkPicture *self,
return;
self->can_shrink = can_shrink;
+
+ gtk_widget_queue_resize (GTK_WIDGET (self));
+
g_object_notify_by_pspec (G_OBJECT (self), properties[PROP_CAN_SHRINK]);
}